import { useState } from "react";

export default function useFormModal () {
  const [ visible, setVisible ] = useState( false );
  const [ currentRow, setCurrentRow] = useState<any>({})

  const closeModal = () => {
    setVisible(false)
  }

  return {
    visible,
    setVisible,
    currentRow,
    setCurrentRow,
    closeModal
  }
}